#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

class UrlTasks;
class UrlTasksView;
class QAction;

class MainWindow : public QMainWindow
{
    Q_OBJECT

private:
    UrlTasks *m_tasks;
    UrlTasksView *m_view;

    QAction *m_quit;
    QAction *m_new_task;
    QAction *m_delete_task;
    QAction *m_start_task;
    QAction *m_stop_task;

    void create_actions();
    void create_toolbar();

private slots:
    void new_task();
    void delete_task();
    void start_task();
    void stop_task();

    void quit();

public:
    explicit MainWindow(QWidget *parent = 0);
};

#endif // MAINWINDOW_H
